import request from '@/utils/request'

export default {
  getVideo(vid) {
    return request({
      url: `/edu/video/getVideo/${vid}`,
      method: 'get'
    })
  },
  getPlayAuth(vid) {
    return request({
      url: `/edu/video/getPlayAuth/${vid}`,
      method: 'get'
    })
  },
  getVideoList(videoId,isBuyCourse) {
    return request({
      url: `/edu/video/getVideoList/${videoId}/${isBuyCourse}`,
      method: 'get'
    })
  },
  getCourse(videoId) {
    return request({
      url: `/edu/video/getCourse/${videoId}`,
      method: 'get'
    })
  },
  getTeacher(videoId) {
    return request({
      url: `/edu/video/getTeacher/${videoId}`,
      method: 'get'
    })
  },
  getCommentList(courseId, current) {
    return request({
      url: `/edu/comment/course/${courseId}/${current}`,
      method: 'get'
    })
  },
  commitComment(commentVo) {
    return request({
      url: `/edu/comment/commit`,
      method: 'post',
      data: commentVo
    })
  },
  delComment(commentId, memberId) {
    return request({
      url: `/edu/comment/del/${commentId}/${memberId}`,
      method: 'get'
    })
  }

}